<?php


namespace UU\Suite\DingTalk;

use UU\Suite\Kernel\Contracts\AccountInterface;

class Account implements AccountInterface
{
    protected string $appId;
    protected string $secret;
    protected ?string $token = null;
    protected ?string $aesKey = null;

    public function __construct($appId, $secret, $token, $aesKey)
    {
        $this->appId = $appId;
        $this->secret = $secret;
        $this->token = $token;
        $this->aesKey = $aesKey;
    }

    public function getAppId(): string
    {
        return $this->appId;
    }

    public function getSecret(): string
    {
        return $this->secret;
    }

    public function getToken(): ?string
    {
        return $this->token;
    }

    public function getAesKey(): ?string
    {
        return $this->aesKey;
    }
}